package com.wmyg.antifake.service;

import com.wmyg.antifake.entity.Factory;
import org.springframework.data.domain.Page;

import java.util.List;

public interface FactoryService {

    Boolean saveFactory(Factory factory, String username);

    List<Factory> getFactoryList(String username);

    Page<Factory> getFactoryPage(String username, Integer index);

    Page<Factory> getFactoryPage(String username, Integer index, String factoryName);

    Factory findByFactoryId(Integer factoryId);

}
